package com.software.myopiachildren.receiver;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * @author penglei
 * @date 2020/04/18
 * 推送公告通知栏广播处理
 */
public class NotifyClickReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        String content = intent.getStringExtra("content");
        int type = intent.getIntExtra("type", -1);
        Log.e("type", "====type:" + type + "|" + content);
        // 执行通知栏点击操作

        /*switch (type) {
            case Constant.NOTIFY_MSG_TYPE_TRADE:
                Toast.makeText(context, content + "" + type, Toast.LENGTH_LONG).show();
                break;
            case Constant.NOTIFY_MSG_TYPE_QA:
                Toast.makeText(context, content + "" + type, Toast.LENGTH_LONG).show();
                break;
        }*/

    }
}


